<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<meta http-equiv="Cache-Control" content="no-siteapp">
<link rel="stylesheet" href="../../../static/layui/css/layui.css" media="all" />
<link rel="stylesheet" href="../../../static/css/public.css" media="all" />
</head>
<body class="childrenBody">

	<table id="demo" lay-filter="test"></table>
	<div class="layui-inline" style="margin: 20px; float: right">
		<a class="layui-btn confirm_btn" data-type="reload" has-permission="000500350010">确认考勤</a>
	</div>
	<script type="text/javascript" src="../../../static/js/jquery-2.1.1.min.js"></script>
	<script type="text/javascript" src="../../../static/layui/layui.js"></script>
	<script type="text/javascript" src="../../../static/js/index.js"></script>
	<script type="text/javascript" src="../../../static/custom/js/common.js"></script>
	<script type="text/javascript">
		layui.use([ 'table', 'layer' ], function() {
			var layer = parent.layer === undefined ? layui.layer : top.layer, $ = layui.jquery;
			var table = layui.table;
			var geneAtdApi = '../../../attendance/calendar/geneAtdTable';
			var confirmAtdTableApi = '../../../attendance/calendar/confirmAtdTable';
			var cols = [ [ {
				field : 'ername',
				title : '员工',
				align : "center"
			}, {
				field : 'dname',
				title : '部门',
				align : "center"
			}, {
				field : 'pname',
				title : '岗位',
				align : "center"
			}, {
				field : 'shouldAttd',
				title : '应出勤天数',
				align : 'center'
			}, {
				field : 'actualAttd',
				title : '实出勤天数',
				align : 'center'
			}, {
				field : 'paidLeave',
				title : '带薪休假天数',
				align : 'center'
			}, {
				field : 'generalLeave',
				title : '普通请假天数',
				align : 'center'
			}, {
				field : 'lateAndEarlyLeave',
				title : '迟到和早退分钟数',
				align : 'center'
			}, {
				field : 'goout',
				title : '外出天数',
				align : 'center'
			}, {
				field : 'overtime',
				title : '加班小时数',
				align : 'center'
			}, {
				field : 'absenteeism',
				title : '旷工天数',
				align : 'center'
			} ] ];
			var year = getUrlParam("year");
			var month = getUrlParam("month");
			loadAjax(geneAtdApi, "get", {
				year : year,
				month : month
			}, function(response) {
				baseCallBack(response, function(response) {
					table.render({
						elem : '#demo',
						cols : cols,
						data : [ response.data ]
					});
				});
			});
		

		})
	</script>
</body>
</html>